package water_qanxun_api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import water_qanxun_api.util.BeanUtil;

@SpringBootApplication
@MapperScan("water_qanxun_api.dao")
@EnableScheduling //开启定时任务
public class WaterQanxunApiApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(WaterQanxunApiApplication.class, args);
    }
    // 允许在工具类内调用服务类
    @Bean
    public BeanUtil beanUtil() {
        return new BeanUtil();
    }
}
